package test;

import test.Projectile.AmmoType;

public class FastGun extends AbstractGun {

	private static final int RATE_OF_FIRE = 5;
	
	public FastGun(){
		super(RATE_OF_FIRE, AmmoType.PAINT_AMMO);
	}
	
	public FastGun(AmmoType ammo) {
		super(RATE_OF_FIRE, ammo);
	}
	
	@Override
	public void fire(AbstractShooter gunman){
		if (GameEngine.getClicks() % RATE_OF_FIRE == 0){
			super.fire(gunman);
		}
	}

}
